package com.xbfinance.manager.pojo.dto;

import java.util.List;

public class ApplyResult<T> {
    private Integer limit;
    private Integer page;
    private double pages;
    private Integer total;
    private List<T> docs;

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public double getPages() {
        return pages;
    }

    public void setPages(double pages) {
        this.pages = pages;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getDocs() {
        return docs;
    }

    public void setDocs(List<T> docs) {
        this.docs = docs;
    }

    public ApplyResult(Integer limit, Integer page, Integer pages, Integer total, List<T> docs) {
        this.limit = limit;
        this.page = page;
        this.pages = pages;
        this.total = total;
        this.docs = docs;
    }

    public ApplyResult() {
    }

    @Override
    public String toString() {
        return "ApplyResult{" +
                "limit=" + limit +
                ", page=" + page +
                ", pages=" + pages +
                ", total=" + total +
                ", docs=" + docs +
                '}';
    }
}
